﻿
namespace CommonLib.Pattern
{
	public class PatternChainController
	{
		IChainNode m_Chain;
		public IChainNode CurChain { get => m_Chain ?? (m_Chain = InitChain()); set => m_Chain = value; }
		/// <summary>
		/// 构造职责链
		/// </summary>
		public PatternChainController()
		{
			
		}

		protected virtual IChainNode InitChain()
		{
			return null;
		}
	}
}